import org.junit.Test;

import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;

public class TriangleTest {
    @Test
    public void shouldTestPrintingOfOneStar(){
        Triangle triangle = new Triangle();
        assertThat(triangle.printOneStar(),is ("*"));
    }
   @Test
    public void shouldTestPrintingOfHorizontalLine(){
       Triangle triangle = new Triangle();
       assertThat(triangle.printNumberOfStars(8),is("********"));
   }
   @ Test
    public void shouldTestVerticalLine(){
       Triangle triangle = new Triangle();
       assertThat(triangle.drawVerticalLine(5), is("*\n*\n*\n*\n*\n"));
   }
    @ Test
    public void shouldTestDrawingRightTriangle(){
        Triangle triangle = new Triangle();
        assertThat(triangle.drawRightTriangle(3), is("*\n**\n***\n"));
    }
}
